﻿using System;
namespace lianxi5
{
    internal class Program
    {
        static void Main(string[] args)
        {
            var rand = new Random(234);

            var bytes = new byte[4];
            rand.NextBytes(bytes);
            Console.WriteLine("Four random byte values:");
            foreach(byte b in bytes)
            {
                Console.Write("{0, 4}", b);
            }
            Console.WriteLine();

            Console.WriteLine("Five random integer values:");
            for (int ctr = 0; ctr <= 4; ctr++)
            {
                Console.Write("{0, 16:N0}", rand.Next());
            }
            Console.WriteLine();

            Console.WriteLine("Five random integers between 0 and 100:");
            for (int ctr = 0; ctr <= 4; ctr++)
            {
                Console.Write("{0, 8:N0}", rand.Next(101));
            }
            Console.WriteLine();
        }
    }
}